<template>
<div id="app">
  <div id="nav" v-if="this.$route.meta.showTab">
      <router-link replace to="/" v-model="active">推荐音乐</router-link> 
      <router-link to="/hottop">热歌榜</router-link> 
      <router-link to="/sousuo">搜索</router-link>
  </div>
 <router-view/>
 <!-- <van-tabbar route>
 <van-tabbar-item replace to="/" icon="home-o">推荐</van-tabbar-item>
  <van-tabbar-item replace to="/sousuo" icon="hot-o">关于</van-tabbar-item>
  <van-tabbar-item replace to="/about" icon="contact">我的</van-tabbar-item>
</van-tabbar> -->
  </div>
</template>
<script>
export default {
data(){
  return{
    active:0,
  }
}
}
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  height: 100%;
}

#nav {
  width: 100%;
  /* padding: 30px; */
  display: flex;
  border-bottom: rgb(206, 205, 205) 1.5px solid;
}

#nav a {
  padding: 5px;
  box-sizing: border-box;
  flex: 1;
  display: block;
  font-weight: bold;
  color: #333;
  width: 30%;
  
}

#nav a.router-link-exact-active {
  color: #dd001b;
  border-bottom: #dd001b solid 3px;
}
</style>
